package com.share.device.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.share.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 策略信息表
 *
 * @author ruoyi
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("strategies")
public class Strategies extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 策略ID
     */
    @TableId(value = "strategy_id", type = IdType.AUTO)
    private Integer strategyId;

    /**
     * 策略名称
     */
    private String strategyName;

    /**
     * 策略类型
     */
    private String strategyType;

    /**
     * 策略参数(JSON格式)
     */
    private String parameters;

    /**
     * 生效开始时间
     */
    private LocalDateTime effectiveStart;

    /**
     * 生效结束时间
     */
    private LocalDateTime effectiveEnd;

    /**
     * 创建人ID
     */
    private Integer creatorId;

    /**
     * 状态(0:停用,1:启用)
     */
    private Integer status;

} 